package com.huazhi.wzsnw.service;


import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import java.util.Map;

public interface SystemService {

    public JSONObject getMongoStructure(Integer page, Integer pageSize, String tableName, String location);

    public Boolean getValueExsit(String tableName, String key, String value);

    public int addStructure(Map<String, Object> data, String tableName);

    public JSONObject getOneStructure(String id, String tableName);

    public int updateStructure(Map<String, Object> data, String id, String tableName);

    public int updateStructureState(String key, String state, String id, String tableName);

    public JSONArray getTreeStructure();

    public JSONObject getSelectStructure(Integer page, Integer pageSize, String tableName, String id);

//    public JSONObject getOneOption(String tableName, String id);

    public Boolean getCodeExsit(String tableName, String key, String value, String id);

//    public Boolean getCodeExsitForExcel(String tableName, String key, String value, String id);

    public int addCode(Map<String, String> data, String tableName);

    public void deleteAttributeById(String id, String tableName);

    public JSONObject getPlace();


}
